import request from '@/utils/system/request';

/** 试验样本选择-获取试验样本选择数据 */
export function httpSampleDataList(data: object) {
  return request({
    url: '/complexNet/sampleData/getSampleDataList',
    method: 'post',
    data,
  });
}

// 单个相似性评估--样本基础信息筛选--获取详情信息
export function httpGetKeyPara(data: object) {
  return request({
    url: '/complexNet/similarity/getKeyPara',
    method: 'post',
    params: data,
  });
}

// 单个相似性评估--样本基础信息筛选-下一步
export function httpSingleStaticSimilaritySiftInfoParam(data: object) {
  return request({
    url: '/complexNet/similarity/getStaticSimilarity',
    method: 'post',
    data,
  });
}

// 数据字典--获取参数字段
export function httpKeyField(data: object) {
  return request({
    url: '/complexNet/similarity/getKeyField',
    method: 'post',
    params: data,
  });
}

// 动态特征向量相似性计算--表格数据获取
export function httpDynmicFeatureVectorEvaluateList(data: object) {
  return request({
    url: '/complexNet/similarity/getDynamicSimilarity',
    method: 'post',
    params: data,
  });
}

// 动态特征向量一致性评估--下一步
export function httpDynmicFeatureVectorEvaluateStep(data: object) {
  return request({
    url: '/complexNet/sampleData/getSampleDataList',
    method: 'post',
    params: data,
  });
}

// 结果可视化展示--表格数据获取
export function httpResultVisiualDisplayList(data: object) {
  return request({
    url: '/complexNet/similarity/getSimilarityResult',
    method: 'post',
    params: data,
  });
}

// 结果可视化展示--导出
export function httpResultVisiualDisplayExportFile(params: any) {
  return request({
    url: `/complexNet/similarity/exportSimilarityToExcel`,
    method: 'get',
    params,
    responseType: 'blob'
  });
}


// 批量评估-主界面
export function httpPatchEvaluateList(data: object) {
  return request({
    url: '/complexNet/sampleData/getSampleDataList',
    method: 'post',
    data,
  });
}
// 批量评估-开始快速处理
export function httpBatchEvaluation(data: object) {
  return request({
    url: '/complexNet/similarity/getBatchEvaluation',
    method: 'post',
    data,
  });
}

// 批量评估-结果列表展示
export function httpPatchEvaluateResultListDisplay(data: object) {
  return request({
    url: '/complexNet/sampleData/getSampleDataList',
    method: 'post',
    data,
  });
}